package com.kczd.jinlan.adapter.normaladapter;

import android.content.Context;
import android.widget.TextView;

import com.kczd.jinlan.R;
import com.kczd.jinlan.adapter.normaladapter.BaseCommAdapter;
import com.kczd.jinlan.adapter.normaladapter.ViewHolder;

import java.util.List;

/**
 * zhangy
 * Created by Administrator on 2017/3/30.
 */

public class SearchAdapter extends BaseCommAdapter<String> {

    public SearchAdapter(List<String> datas) {
        super(datas);
    }

    @Override
    protected void setUI(ViewHolder holder, int position, Context context) {

        String item = getItem(position);

        TextView tv_name = holder.getItemView(R.id.string);
        tv_name.setText(item);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.layout_string;
    }
}
